package com.jzy.gulimall.product.feign;

import com.jzy.common.to.es.BrandEsTo;
import com.jzy.common.to.es.SkuEsTo;
import com.jzy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author jzy
 * @date 2020/9/12 9:12
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    @PostMapping("/search/save/product")
    R productStateUp(@RequestBody List<SkuEsTo> skuEsTos);

    @PostMapping("/search/update/brand")
    R updateEsBrand(@RequestBody BrandEsTo brand);
}
